prepare-root: remember to remove /sysroot.tmp
authorBenjamin Gilbert <bgilbert@redhat.com>
Fri, 13 Sep 2019 06:37:01 +0000 (02:37 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 13 Sep 2019 12:40:57 +0000 (12:40 +0000)
commit653fc6a125e789692d8f8cd47ca4b1a124766a61
tree0487a58dd924b05a83fefe7607cb4c257b053e41
parentca701f69c2610d51a2b4f6b62af9c127fb1336f0
prepare-root: remember to remove /sysroot.tmp

Without this, rerunning ostree-prepare-root will fail in mkdir()
because /sysroot.tmp already exists, which complicates debugging from
the dracut emergency shell.

Closes: #1919
Approved by: cgwalters
src/switchroot/ostree-prepare-root.c